package com.meetingshow.weibo.uiservice.model;

import java.util.Date;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.weibo.dao.model.WeiboPO;

public class WeiboVO extends BaseVO {
    /**
     * 
     */
    private static final long serialVersionUID = 6338292337844208112L;
    
    private Integer id;
    private String accessToken;
    private String accessTokenSecret;
    private Date createTime;
    private Integer userId;
    private String weiboId;
    private String weiboType;
    private String verifier;
    
    public WeiboVO() {
    }
    
    public WeiboVO(WeiboPO weiboPO) {
        setId(weiboPO.getId());
        setAccessToken(weiboPO.getAccessToken());
        setAccessTokenSecret(weiboPO.getAccessTokenSecret());
        setCreateTime(weiboPO.getCreateTime());
        setUserId(weiboPO.getUserId());
        setWeiboId(weiboPO.getWeiboId());
        setWeiboType(weiboPO.getWeiboType());
        setVerifier(weiboPO.getVerifier());
    }
    
    public WeiboPO toWeiboPO() {
        WeiboPO weiboPO = new WeiboPO();
        
        weiboPO.setAccessToken(getAccessToken());
        weiboPO.setAccessTokenSecret(getAccessTokenSecret());
        weiboPO.setCreateTime(getCreateTime());
        weiboPO.setUserId(getUserId());
        weiboPO.setWeiboId(getWeiboId());
        weiboPO.setWeiboType(getWeiboType());
        weiboPO.setVerifier(getVerifier());
        
        return weiboPO;
    }
    
    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * @return the accessToken
     */
    public String getAccessToken() {
        return accessToken;
    }
    /**
     * @param accessToken the accessToken to set
     */
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
    /**
     * @return the accessTokenSecret
     */
    public String getAccessTokenSecret() {
        return accessTokenSecret;
    }
    /**
     * @param accessTokenSecret the accessTokenSecret to set
     */
    public void setAccessTokenSecret(String accessTokenSecret) {
        this.accessTokenSecret = accessTokenSecret;
    }
    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }
    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    /**
     * @return the userId
     */
    public Integer getUserId() {
        return userId;
    }
    /**
     * @param userId the userId to set
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    /**
     * @return the weiboId
     */
    public String getWeiboId() {
        return weiboId;
    }
    /**
     * @param weiboId the weiboId to set
     */
    public void setWeiboId(String weiboId) {
        this.weiboId = weiboId;
    }
    /**
     * @return the weiboType
     */
    public String getWeiboType() {
        return weiboType;
    }
    /**
     * @param weiboType the weiboType to set
     */
    public void setWeiboType(String weiboType) {
        this.weiboType = weiboType;
    }

    public String getVerifier() {
        return verifier;
    }

    public void setVerifier(String verifier) {
        this.verifier = verifier;
    }
}
